package org.llc.gof.behavior.state.basic;

/**
 * @author Fancy
 */
public class ConcreteState1 extends State {

	@Override
	public void handle1() {
		System.out.println("handel1");
	}


	@Override
	public void handle2() {
		//设置当前状态为stat2
		super.context.setCurrentState(Context.STATE2);
		//过渡到state2状态，由Context实现
		super.context.handle2();
	}

}
